home *** CD-ROM | disk | FTP | other *** search
- global menuList, hotcast, lastmc, pathSeparator, rosso, bianco, verde, currentNetHandler, workingdb, cd
-
- on startMovie
- sound stop 1
- sound stop 2
- set verde to the foreColor of field "verde"
- set rosso to the foreColor of field "rosso"
- set bianco to the foreColor of field "bianco"
- if the machineType = 256 then
- set pathSeparator to "\"
- else
- set pathSeparator to ":"
- end if
- set lastmc to -1
- set hotcast to [149, 212]
- positionObject(getAt(menuList, 1), 50, 144)
- end
-
- on regali
- set workingdb to 3
- go(1, cd & pathSeparator & "IMM" & pathSeparator & "db" & pathSeparator & "db.dir")
- end
-
- on idle
- gherollero()
- if the machineType = 256 then
- do(currentNetHandler)
- end if
- end
-
- on gherollero
- set thismc to the mouseCast
- if lastmc = thismc then
- if getOne(hotcast, thismc) then
- mousewithin(script thismc)
- end if
- end if
- if lastmc <> thismc then
- if getOne(hotcast, lastmc) then
- mouseexit(script lastmc)
- end if
- if getOne(hotcast, thismc) then
- mouseenter(script thismc)
- end if
- set lastmc to thismc
- end if
- end
-